RemoveMany Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Removes all the items in collection from the set.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public int RemoveMany(
	IEnumerable<T> collection
)
Visual Basic (Declaration)
Public Function RemoveMany ( _
	collection As IEnumerable(Of T) _
) As Integer
Visual C++
public:
int RemoveMany (
	IEnumerable<T>^ collection
)

Parameters

collection
IEnumerable<(Of <T>)>
A collection of items to remove from the set.

Return Value

The number of items removed from the set.

Remarks

Equality between items is determined by the comparison instance or delegate used to create the set.

Removing the collection takes time O(M), where M is the number of items in collection.

Exceptions

ExceptionCondition
System..::ArgumentNullExceptioncollection is null.

See Also